package com.gitee.yannzh.rune.example.crud.controller;

import com.gitee.yannzh.rune.core.base.vo.Result;
import com.gitee.yannzh.rune.example.crud.entity.User;
import com.gitee.yannzh.rune.example.crud.params.UserParam;
import com.gitee.yannzh.rune.support.crud.annotation.Rune;
import com.gitee.yannzh.rune.support.crud.constants.ApiMethod;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Rune(entityType = User.class, paramType = UserParam.class,api = {ApiMethod.GET,ApiMethod.LIST})
@RestController
@RequestMapping("/user")
public class TestUserController {

    @GetMapping("/a")
    public Result<String> tt() {
        return Result.ok("ok");
    }

}
